﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditNotification.aspx.cs" Inherits="BIMP.ADMIN.BIMP.EditNotification" DynamicMasterPageFile="~masterurl/default.master" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" src="~/_controltemplates/InputFormSection.ascx" %> 
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="SchedulePicker" src="~/_controltemplates/SchedulePicker.ascx" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 


<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="/_admin/BIMP/wizard.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
   <table border="0" cellspacing="0" cellpadding="0" class="ms-propertysheet">
    <tr>
        <td height="1" class="ms-sectionline" colspan="2">
            <img src=/_layouts/images/blank.gif" width="1" height="1" alt="" />
        </td>
     </tr>
    </table>


        
    <asp:Wizard ID="EditNotificationWizard" runat="server" Width="100%" DisplaySideBar="false" OnNextButtonClick="WizardNextButton_OnClick" OnFinishButtonClick="WizardFinishButton_OnClick">
    <HeaderTemplate>
        <table style="width: 100%" cellpadding="0" cellspacing="0">
            <tr>
                <td class=" s4-titletext wizardTitle">
                    <h2><%= EditNotificationWizard.ActiveStep.Title%></h2>
                </td>
                <td>
                    <table style="width: 100%; border-collapse: collapse;">
                        <tr>
                            <td style="text-align: right">
                                <span class="wizardProgress">Steps:</span>
                            </td>
                            <asp:Repeater ID="SideBarList" runat="server">
                                <ItemTemplate>
                                    <td class="stepBreak">&nbsp;</td>
                                    <td class="<%# GetClassForWizardStep(Container.DataItem) %>" title="<%# DataBinder.Eval(Container, "DataItem.Name")%>">
                                        <%# EditNotificationWizard.WizardSteps.IndexOf(Container.DataItem as WizardStep) + 1%>
                                    </td>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </HeaderTemplate>

    <SideBarTemplate>
    </SideBarTemplate>


        <WizardSteps>
            <asp:WizardStep Title="General & Options" StepType="Start" runat="server">
                <table class="ms-formtable" style="margin-top: 8px;" border=0 cellpadding=0 cellspacing=0 width=100%>
                    <wssuc:InputFormSection Id="NameSection" Title="Notification Name" Description="" runat="server">
		                <Template_InputFormControls>
			                <wssuc:InputFormControl runat="server" LabelText="">
				                <Template_control>
                                    <SharePoint:InputFormTextBox ID="iftbNotificationName" runat="server" TextMode="SingleLine" RichText="false"  Width="100%"/>
    	                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="iftbNotificationName" EnableClientScript="False" SetFocusOnError="True" ErrorMessage="Notification title is required." />
				                </Template_control>
			                </wssuc:InputFormControl>
		                </Template_InputFormControls>
	                </wssuc:InputFormSection>

                    <wssuc:InputFormSection Id="TypeSection" Title="Notification Type" Description="" runat="server" Visible="false">
		                <Template_InputFormControls>
			                <wssuc:InputFormControl runat="server" LabelText="">
				                <Template_control>
                                    <asp:DropDownList ID="ddlType" runat="server" Width="100%" Enabled="false" />
				                </Template_control>
			                </wssuc:InputFormControl>
		                </Template_InputFormControls>
	                </wssuc:InputFormSection>

                    <wssuc:InputFormSection Id="ScheduleSection" Title="Recurring Schedule" Description="Use this section to modify the schedule specifying when the timer job will run. Daily, weekly, and monthly schedules also include a window of execution. The timer service will pick a random time within this interval to begin executing the job on each applicable server. This feature is appropriate for high-load jobs which run on multiple servers on the farm. Running this type of job on all the servers simultaneously might place an unreasonable load on the farm. To specify an exact starting time, set the beginning and ending times of the interval to the same value." runat="server">
		                <Template_InputFormControls>
			                <wssuc:InputFormControl runat="server" LabelText="This timer job is scheduled to run: ">
				                <Template_control>
					                <wssuc:SchedulePicker id="JobSchedule" 
                                        Enabled="false"
                                        Minutes="true"
						                Hourly="true"
						                Daily="true"
						                Weekly="true"
						                Monthly="true"
						                runat="server" />
				                </Template_control>
			                </wssuc:InputFormControl>
		                </Template_InputFormControls>
	                </wssuc:InputFormSection>

                    <wssuc:InputFormSection Id="OptionsSection" Title="Options" Description="" runat="server">
		                <Template_InputFormControls>
			                <wssuc:InputFormControl runat="server" LabelText="">
				                <Template_control>
                                    <tr><asp:CheckBox Enabled="false" ID="cboxSendNoResult" Text="Send reminder even if there are no results." runat="server" /></tr>
		                            <tr><asp:CheckBox Enabled="false" ID="cboxSkipItemIterator" Text="Skip item iterator info." runat="server" /></tr>
		                            <tr><asp:CheckBox Enabled="false" ID="cboxEnrichWorkflowTasksData" Text="Workflow tasks data enrichment" runat="server" Checked="false" /></tr>
		                            <tr><asp:CheckBox Enabled="false" ID="cboxEnrichLookupFields" Text="Lookup data enrichment" runat="server" Checked="false" /></tr>
		                            <tr><asp:CheckBox Enabled="false" ID="cboxEnrichUsersOrgData" Text="Users Organizational data enrichment" runat="server" Checked="false" /></tr>
				                </Template_control>
			                </wssuc:InputFormControl>
		                </Template_InputFormControls>
	                </wssuc:InputFormSection>
                </table>            
            </asp:WizardStep>

            <asp:WizardStep ID="WizardStep3" Title="XSL Transformation" StepType="Step" runat="server">
                <div>
                    <div>Data Source:&nbsp;&nbsp;</div>
                    <div>
                        <SharePoint:InputFormTextBox ID="iftbDSCFG" runat="server" TextMode="SingleLine" Rows="1" RichText="false"  Width="100%" />
                    </div>
                    <div>XSL Transformation to be applied</div>
                    <div>
                        <SharePoint:InputFormTextBox ID="iftbXSLT" runat="server" TextMode="MultiLine" Rows="15" RichText="false"  Width="100%" />
                    </div>
                    <div>
                        <asp:ListBox ID="lbAllowedBindings"  runat="server" Height="150" />
                    </div>
                </div>
            </asp:WizardStep>

            <asp:WizardStep ID="WizardStep4" Title="Preview & Finish" StepType="Finish" runat="server">
                <SharePoint:InputFormTextBox ID="outputHTML" runat="server" TextMode="MultiLine" Rows="15" RichText="false"  Width="100%"/>
            </asp:WizardStep>

            <asp:WizardStep ID="WizardStep5"  StepType="Complete" Runat="Server">
                This is the <b>Complete</b> WizardStep.
                <br/><br/>
            </asp:WizardStep>
        </WizardSteps>
    </asp:Wizard>


<table class="ms-formtable" style="margin-top: 8px;" border=0 cellpadding=0 cellspacing=0 width=100%>






</table>

</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    <SharePoint:EncodedLiteral ID="lblPageTitle" runat="server" Text="" />
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
    <SharePoint:EncodedLiteral ID="lblPageTitleInTitleArea" runat="server" Text="" />
</asp:Content>
